<include file="header"/>
<body>
<div class="wraper">
    <div class="load">
        <img class="load-bee" src="/assets/base/restaurant/images/load-bee.png"/>

    </div>
    <div class="top">
        <p><span class="iconfont icon-dingcanguanli entrance"></span>{BEESCRM:$name.title}</p>
    </div>
    <volist name="data.list" id="vo">
        <div class="lists tb-mode">
            <a href="<if condition=" $vo['stop'] eq
            0">/base/restaurant/menu/restaurant_id/{BEESCRM:$vo.restaurant_id}/res_id/{BEESCRM:$res_id}
            <else/>
            javascript:void(0)</if>" class="tb-cell list-left">
            <div class="img-box"><img src="{BEESCRM:$vo.logo_url}">
                <if condition="$vo['stop'] eq 1"><span class="rest">休息中</span></if>
            </div>
            </a>
            <a href="<if condition=" $vo['stop'] eq
            0">/base/restaurant/menu/restaurant_id/{BEESCRM:$vo.restaurant_id}/res_id/{BEESCRM:$res_id}
            <else/>
            javascript:void(0)</if>" class="tb-cell list-center">
            <p>{BEESCRM:$vo.restaurant_name}</p>
            <p><span style="font-size: 12px;">{BEESCRM:$vo.time1}-{BEESCRM:$vo.time2}&nbsp;&nbsp;{BEESCRM:$vo.time3}-{BEESCRM:$vo.time4}</span>
            </p>
            <p class="star-box">
					<span class="stars">
						<span>口味</span>
						<for start="0" end="$vo.star"><span class="iconfont icon-xingxing star"></span></for>
						<for start="0" end="$vo.grey_star"><span
                                class="iconfont icon-xingxing star grey-star"></span></for>
					</span>
                <span class="stars">
						<span>配送</span>
						<for start="0" end="$vo.send_star"><span class="iconfont icon-xingxing star"></span></for>
						<for start="0" end="$vo.send_grey_star"><span
                                class="iconfont icon-xingxing star grey-star"></span></for>
					</span>
            </p>
            <p class="star-box">
					<span class="stars">
						<span>质量</span>
						<for start="0" end="$vo.zl_star"><span class="iconfont icon-xingxing star"></span></for>
						<for start="0" end="$vo.zl_grey_star"><span
                                class="iconfont icon-xingxing star grey-star"></span></for>
					</span>
            </p>
            <!--<p class="tel"><span class="iconfont icon-dianhua"></span>{BEESCRM:$vo.mobile}</p>-->
            </a>
            <a
            <if condition="$vo['mobile']">href="tel://{BEESCRM:$vo.mobile}"</if>
            class="tb-cell list-right"><span class="iconfont icon-dianhua1"></span></a>
        </div>
    </volist>
    <div class="fenye" style="text-align: center">{BEESCRM:$page}</div>
    <div class="btn-box">
        <a href="#" class="btn"><span class="iconfont icon-weiwaimai"></span> 点外卖</a>
        <a href="/base/restaurant/myorder/res_id/{BEESCRM:$res_id}" class="btn"><span
                class="iconfont icon-dingdan"></span> 我的订单</a>
    </div>
</div>

<include file="commonJS"/>

</body>
</html>
<script>
    $('.entrance').click(function () {
        var data={};
        data.res_id={BEESCRM:$res_id};
        $.ajax({
            url: "/base/restaurant/entrance/res_id/"+data.res_id ,
            data: 'data',
            dataType: 'json',
            type: 'POST',
            async: true,
            success: function(data) {
                if (data.status == 'S') {
                    location.href =data.url;
                } else {
                    fm.alert(data.message);
                    return false;
                }
            }
        })
    })
</script>